﻿using AK.Wwise.Editor;

namespace AudioStudio.Editor
{
	[UnityEditor.CustomPropertyDrawer(typeof(Switch))]
	public class SwitchDrawer : BaseTypeDrawer
	{
		protected override WwiseObjectType WwiseObjectType { get { return WwiseObjectType.Switch; } }

        protected override void OnPickerChanged(UnityEditor.SerializedProperty property, AK.Wwise.TreeView.TreeViewItem treeItem)
        {
            PickerChangeGroup(property, treeItem, AkWwiseProjectInfo.GetData().SwitchWwu);
        }
    }
}
